aleo-std-timed 0.1.2

A profiler to conveniently time function executions
Documentation

aleo-std-timed

Crates.io Authors License

This crate implements a profiler to conveniently time function executions.

use aleo_std::prelude::*;

#[timed]
fn foo(y: i32) -> i32 {
    let mut x = 1;
    let d = 1_000;
    x += d;
    x += y;
    x
}

#[timed]
fn main() {
    foo(23);
}